package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.pojo.CustomCardPoJo;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: wufeng
 * @date: 2018/8/30 15:32
 * @desrcption: 卡片设置
 */
@Getter
@Setter
@ToString
public class CardSaveDTO extends BaseDTO {

    private static final long serialVersionUID = 4096893191548290587L;

    /**
     * 卡片id
     */
    private Long userConfigId;

    @NotNull(message = "{dto.msg.addBatch.appId.NotNull}")
    public Long appId;

    @Valid
    @NotEmpty(message = "{dto.msg.cardSave.cardList.NotEmpty}")
    private List<CustomCardPoJo> cardList;

}
